<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>9.运算符-逻辑运算符</title>
    <script>
        //1.逻辑与 && 一假则假 全真则真
        console.log(3 > 5 && 3 > 2); // false
        console.log(3 < 5 && 3 > 2); // true
        //2.逻辑或 || 一真则真 全假则假
        console.log(3 > 5 || 3 > 2); // ture
        console.log(3 > 5 || 3 < 2); // false
        // 3. 逻辑非 !
        console.log(!true); //false
    </script>
</head>

<body>

</body>

</html>